package com.example.multithreading;

public class ch03_04 {
    public static void main(String[] args) {
       ThreadGroup group =new ThreadGroup("test");
       group.setMaxPriority(7);

       Thread thread =new Thread(group,"test_thread");
       thread.setPriority(10);

        System.out.println(thread.getPriority());

        //线程的优先级不能超过 线程所在组的优先级 如果超过默认就是线程组的最大优先级
    }
}
